package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.User;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2018-12-21
 */
public interface UserMapper extends BaseMapper<User> {

    //测试获取信息
    List<Map<String,String>> findCityMsg();

    /**
     * 获取密码
     * @param name
     * @return
     */
    String getPassword(String name);

    /**
     * 获取角色
     * @param name
     * @return
     */
    String getRole(String name);
}
